<template>
	<view>
		<web-view v-if="href" :src="href"></web-view>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				href:""
			}
		},
		onLoad(opt) {
			if(opt.title){
				uni.setNavigationBarTitle({
					title:opt.title
				})
			}
			if(opt.url){
				var url = decodeURIComponent(opt.url)
				this.href = url
			}
		}
	}
</script>

<style lang="scss">
</style>